home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / HIImagingObjects.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  50KB  |  1,376 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: HIImagingObjects.h.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emith.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_HIImagingObject_h
  11. #define SOM_HIImagingObject_h
  12.  
  13.  
  14. /*
  15.  * Passthru lines: File: "C.h", "before"
  16.  */
  17. #include <Collections.h>
  18. #include <Quickdraw.h>
  19. #include <TextEdit.h>
  20. #include <TextObjects.h>
  21. #include <Types.h>
  22. #include <Resources.h>
  23. #include <HIObjectTypes.h>
  24. #include <HIImagingObjectTypes.h>
  25.  
  26. #include <som.h>
  27.  
  28. /*
  29.  * -- This emitter treats Method Tokens as Thunks by default.
  30.  * -- Use the sc modifier "nothunks" to change this default
  31.  */
  32. #undef somresolve_
  33. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  34.  
  35. /*
  36.  * Define the class name as an object type
  37.  */
  38. #ifndef HIImagingObject
  39. #define HIImagingObject SOMObject
  40. #endif
  41. #include <somobj.h>
  42.  
  43. /*
  44.  * Start of user-defined types:
  45.  */
  46. #ifndef SOMClass
  47.     #define SOMClass SOMObject
  48. #endif /* SOMClass */
  49. #ifndef SOMObject
  50.     #define SOMObject SOMObject
  51. #endif /* SOMObject */
  52.  
  53. /*
  54.  * End of user-defined types.
  55.  */
  56.  
  57. #define HIImagingObject_MajorVersion 0
  58. #define HIImagingObject_MinorVersion 0
  59.  
  60. /*
  61.  * External name shortening if required
  62.  */
  63. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  64. #define HIImagingObjectClassData d
  65. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  66. /*--------------Migration------------*/
  67.  
  68. #ifdef OLDIBMSOMAPISUPPORT
  69. #define HIImagingObject_classObj somNewClassReference(HIImagingObject)
  70. #define _HIImagingObject HIImagingObject_classObj
  71. #define HIImagingObjectCClassData HIImagingObjectClassData
  72. #define HIImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIImagingObject,major,minor)
  73. #endif
  74.  
  75. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  76. #define HIImagingObjectMetaClass SOMClass
  77.  
  78. #if PRAGMA_ALIGN_SUPPORTED
  79. #  pragma options align=power
  80. #endif
  81.  
  82. /*
  83.  * Declare the class data structure
  84.  */
  85. SOMEXTERN struct HIImagingObjectClassDataStructure {
  86. #ifdef OLDIBMSOMAPISUPPORT
  87.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  88. #else
  89.     long zero;
  90. #endif
  91.     somStaticClassInfo *sci;
  92.     somDToken        instanceDataToken;
  93.     long reserved [3];
  94.     somMToken NewImage;
  95.     somMToken DisposeImage;
  96.     somMToken InitFromAERecord;
  97.     somMToken WriteToAERecord;
  98.     somMethodProc *GetImageType;
  99.     somMToken MeasureImage;
  100.     somMToken DrawImage;
  101.     somMethodProc *GetHIImagingObject;
  102.     somMToken GetNewImage;
  103.     somMethodProc *GetNewImageFromResource;
  104.     somMToken CloneImage;
  105.     somMToken ReleaseImage;
  106.     somMToken GetImageOwnerCount;
  107. } SOMDLINK HIImagingObjectClassData;
  108.  
  109. #if PRAGMA_ALIGN_SUPPORTED
  110. #  pragma options align=reset
  111. #endif
  112.  
  113. #if !defined(HIImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  114. #if PRAGMA_IMPORT_SUPPORTED
  115. #pragma import list HIImagingObjectClassData
  116. #endif
  117. #endif
  118.  
  119.  
  120. /*
  121.  * New macro for HIImagingObject
  122.  */
  123. #define HIImagingObjectNew() somNewObject(HIImagingObject)
  124.  
  125. /*
  126.  * New Method: NewImage
  127.  */
  128. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_NewImage)(HIImagingObject *somSelf, Environment *ev,
  129.         HIImageRef* imageRefPtr);
  130. #define somMD_HIImagingObject_NewImage "::HIImagingObject::NewImage"
  131. #define HIImagingObject_NewImage(somSelf,ev,imageRefPtr) \
  132.     (SOM_Resolve(somSelf, HIImagingObject, NewImage) \
  133.     (somSelf,ev,imageRefPtr))
  134. #ifndef SOMGD_NewImage
  135.     #if defined _NewImage || defined __NewImage
  136.         #undef _NewImage
  137.         #undef __NewImage
  138.         #define SOMGD_NewImage 1
  139.     #else
  140.         #define _NewImage HIImagingObject_NewImage
  141.     #endif /* _NewImage */
  142. #endif /* SOMGD_NewImage */
  143.  
  144. /*
  145.  * New Method: GetNewImage
  146.  */
  147. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_GetNewImage)(HIImagingObject *somSelf, Environment *ev,
  148.         AESubDesc* initializer,
  149.         HIImageRef* imageRefPtr);
  150. #define somMD_HIImagingObject_GetNewImage "::HIImagingObject::GetNewImage"
  151. #define HIImagingObject_GetNewImage(somSelf,ev,initializer,imageRefPtr) \
  152.     (SOM_Resolve(somSelf, HIImagingObject, GetNewImage) \
  153.     (somSelf,ev,initializer,imageRefPtr))
  154. #ifndef SOMGD_GetNewImage
  155.     #if defined _GetNewImage || defined __GetNewImage
  156.         #undef _GetNewImage
  157.         #undef __GetNewImage
  158.         #define SOMGD_GetNewImage 1
  159.     #else
  160.         #define _GetNewImage HIImagingObject_GetNewImage
  161.     #endif /* _GetNewImage */
  162. #endif /* SOMGD_GetNewImage */
  163.  
  164. /*
  165.  * New Method: CloneImage
  166.  */
  167. typedef HIImageRef   (SOMLINK *somTD_HIImagingObject_CloneImage)(HIImagingObject *somSelf, Environment *ev,
  168.         HIImageRef imageRef);
  169. #define somMD_HIImagingObject_CloneImage "::HIImagingObject::CloneImage"
  170. #define HIImagingObject_CloneImage(somSelf,ev,imageRef) \
  171.     (SOM_Resolve(somSelf, HIImagingObject, CloneImage) \
  172.     (somSelf,ev,imageRef))
  173. #ifndef SOMGD_CloneImage
  174.     #if defined _CloneImage || defined __CloneImage
  175.         #undef _CloneImage
  176.         #undef __CloneImage
  177.         #define SOMGD_CloneImage 1
  178.     #else
  179.         #define _CloneImage HIImagingObject_CloneImage
  180.     #endif /* _CloneImage */
  181. #endif /* SOMGD_CloneImage */
  182.  
  183. /*
  184.  * New Method: ReleaseImage
  185.  */
  186. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_ReleaseImage)(HIImagingObject *somSelf, Environment *ev,
  187.         HIImageRef imageRef);
  188. #define somMD_HIImagingObject_ReleaseImage "::HIImagingObject::ReleaseImage"
  189. #define HIImagingObject_ReleaseImage(somSelf,ev,imageRef) \
  190.     (SOM_Resolve(somSelf, HIImagingObject, ReleaseImage) \
  191.     (somSelf,ev,imageRef))
  192. #ifndef SOMGD_ReleaseImage
  193.     #if defined _ReleaseImage || defined __ReleaseImage
  194.         #undef _ReleaseImage
  195.         #undef __ReleaseImage
  196.         #define SOMGD_ReleaseImage 1
  197.     #else
  198.         #define _ReleaseImage HIImagingObject_ReleaseImage
  199.     #endif /* _ReleaseImage */
  200. #endif /* SOMGD_ReleaseImage */
  201.  
  202. /*
  203.  * New Method: GetImageOwnerCount
  204.  */
  205. typedef ItemCount   (SOMLINK *somTD_HIImagingObject_GetImageOwnerCount)(HIImagingObject *somSelf, Environment *ev,
  206.         ConstHIImageRef imageRef);
  207. #define somMD_HIImagingObject_GetImageOwnerCount "::HIImagingObject::GetImageOwnerCount"
  208. #define HIImagingObject_GetImageOwnerCount(somSelf,ev,imageRef) \
  209.     (SOM_Resolve(somSelf, HIImagingObject, GetImageOwnerCount) \
  210.     (somSelf,ev,imageRef))
  211. #ifndef SOMGD_GetImageOwnerCount
  212.     #if defined _GetImageOwnerCount || defined __GetImageOwnerCount
  213.         #undef _GetImageOwnerCount
  214.         #undef __GetImageOwnerCount
  215.         #define SOMGD_GetImageOwnerCount 1
  216.     #else
  217.         #define _GetImageOwnerCount HIImagingObject_GetImageOwnerCount
  218.     #endif /* _GetImageOwnerCount */
  219. #endif /* SOMGD_GetImageOwnerCount */
  220.  
  221. /*
  222.  * New Method: InitFromAERecord
  223.  */
  224. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_InitFromAERecord)(HIImagingObject *somSelf, Environment *ev,
  225.         HIImageRef imageRef,
  226.         AESubDesc* dataForBaseClass,
  227.         AESubDesc* dataForClass,
  228.         HIAERecordDataFormat dataFormat);
  229. #define somMD_HIImagingObject_InitFromAERecord "::HIImagingObject::InitFromAERecord"
  230. #define HIImagingObject_InitFromAERecord(somSelf,ev,imageRef,dataForBaseClass,dataForClass,dataFormat) \
  231.     (SOM_Resolve(somSelf, HIImagingObject, InitFromAERecord) \
  232.     (somSelf,ev,imageRef,dataForBaseClass,dataForClass,dataFormat))
  233. #ifndef SOMGD_InitFromAERecord
  234.     #if defined _InitFromAERecord || defined __InitFromAERecord
  235.         #undef _InitFromAERecord
  236.         #undef __InitFromAERecord
  237.         #define SOMGD_InitFromAERecord 1
  238.     #else
  239.         #define _InitFromAERecord HIImagingObject_InitFromAERecord
  240.     #endif /* _InitFromAERecord */
  241. #endif /* SOMGD_InitFromAERecord */
  242.  
  243. /*
  244.  * New Method: WriteToAERecord
  245.  */
  246. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_WriteToAERecord)(HIImagingObject *somSelf, Environment *ev,
  247.         ConstHIImageRef imageRef,
  248.         AERecord* dataForSubclass,
  249.         AERecord* dataForClass,
  250.         HIAERecordDataFormat dataFormat);
  251. #define somMD_HIImagingObject_WriteToAERecord "::HIImagingObject::WriteToAERecord"
  252. #define HIImagingObject_WriteToAERecord(somSelf,ev,imageRef,dataForSubclass,dataForClass,dataFormat) \
  253.     (SOM_Resolve(somSelf, HIImagingObject, WriteToAERecord) \
  254.     (somSelf,ev,imageRef,dataForSubclass,dataForClass,dataFormat))
  255. #ifndef SOMGD_WriteToAERecord
  256.     #if defined _WriteToAERecord || defined __WriteToAERecord
  257.         #undef _WriteToAERecord
  258.         #undef __WriteToAERecord
  259.         #define SOMGD_WriteToAERecord 1
  260.     #else
  261.         #define _WriteToAERecord HIImagingObject_WriteToAERecord
  262.     #endif /* _WriteToAERecord */
  263. #endif /* SOMGD_WriteToAERecord */
  264.  
  265. /*
  266.  * New Method: MeasureImage
  267.  */
  268. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_MeasureImage)(HIImagingObject *somSelf, Environment *ev,
  269.         ConstHIImageRef imageRef,
  270.         CGrafPtr port,
  271.         UInt32* widthPtr,
  272.         UInt32* heightPtr,
  273.         HIImageOptions measureOptions);
  274. #define somMD_HIImagingObject_MeasureImage "::HIImagingObject::MeasureImage"
  275. #define HIImagingObject_MeasureImage(somSelf,ev,imageRef,port,widthPtr,heightPtr,measureOptions) \
  276.     (SOM_Resolve(somSelf, HIImagingObject, MeasureImage) \
  277.     (somSelf,ev,imageRef,port,widthPtr,heightPtr,measureOptions))
  278. #ifndef SOMGD_MeasureImage
  279.     #if defined _MeasureImage || defined __MeasureImage
  280.         #undef _MeasureImage
  281.         #undef __MeasureImage
  282.         #define SOMGD_MeasureImage 1
  283.     #else
  284.         #define _MeasureImage HIImagingObject_MeasureImage
  285.     #endif /* _MeasureImage */
  286. #endif /* SOMGD_MeasureImage */
  287.  
  288. /*
  289.  * New Method: DrawImage
  290.  */
  291. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_DrawImage)(HIImagingObject *somSelf, Environment *ev,
  292.         ConstHIImageRef imageRef,
  293.         CGrafPtr port,
  294.         Rect* contentRect,
  295.         Rect* frameRect,
  296.         HIImageOptions drawOptions);
  297. #define somMD_HIImagingObject_DrawImage "::HIImagingObject::DrawImage"
  298. #define HIImagingObject_DrawImage(somSelf,ev,imageRef,port,contentRect,frameRect,drawOptions) \
  299.     (SOM_Resolve(somSelf, HIImagingObject, DrawImage) \
  300.     (somSelf,ev,imageRef,port,contentRect,frameRect,drawOptions))
  301. #ifndef SOMGD_DrawImage
  302.     #if defined _DrawImage || defined __DrawImage
  303.         #undef _DrawImage
  304.         #undef __DrawImage
  305.         #define SOMGD_DrawImage 1
  306.     #else
  307.         #define _DrawImage HIImagingObject_DrawImage
  308.     #endif /* _DrawImage */
  309. #endif /* SOMGD_DrawImage */
  310.  
  311. /*
  312.  * New Method: DisposeImage
  313.  */
  314. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_DisposeImage)(HIImagingObject *somSelf, Environment *ev,
  315.         HIImageRef imageRef);
  316. #define somMD_HIImagingObject_DisposeImage "::HIImagingObject::DisposeImage"
  317. #define HIImagingObject_DisposeImage(somSelf,ev,imageRef) \
  318.     (SOM_Resolve(somSelf, HIImagingObject, DisposeImage) \
  319.     (somSelf,ev,imageRef))
  320. #ifndef SOMGD_DisposeImage
  321.     #if defined _DisposeImage || defined __DisposeImage
  322.         #undef _DisposeImage
  323.         #undef __DisposeImage
  324.         #define SOMGD_DisposeImage 1
  325.     #else
  326.         #define _DisposeImage HIImagingObject_DisposeImage
  327.     #endif /* _DisposeImage */
  328. #endif /* SOMGD_DisposeImage */
  329.  
  330. /*
  331.  * Direct call procedure
  332.  */
  333. typedef HIImagingObject*   (SOMLINK *somTD_HIImagingObject_GetHIImagingObject)(Environment *ev,
  334.         HIImageType imageType);
  335. #define HIImagingObject_GetHIImagingObject ((somTD_HIImagingObject_GetHIImagingObject) HIImagingObjectClassData.GetHIImagingObject)
  336. #ifndef SOMGD_GetHIImagingObject
  337.     #if defined _GetHIImagingObject || defined __GetHIImagingObject
  338.         #undef _GetHIImagingObject
  339.         #undef __GetHIImagingObject
  340.         #define SOMGD_GetHIImagingObject 1
  341.     #else
  342.         #define _GetHIImagingObject HIImagingObject_GetHIImagingObject
  343.     #endif /* _GetHIImagingObject */
  344. #endif /* SOMGD_GetHIImagingObject */
  345.  
  346. /*
  347.  * Direct call procedure
  348.  */
  349. typedef HIImageType   (SOMLINK *somTD_HIImagingObject_GetImageType)(Environment *ev,
  350.         ConstHIImageRef imageRef);
  351. #define HIImagingObject_GetImageType ((somTD_HIImagingObject_GetImageType) HIImagingObjectClassData.GetImageType)
  352. #ifndef SOMGD_GetImageType
  353.     #if defined _GetImageType || defined __GetImageType
  354.         #undef _GetImageType
  355.         #undef __GetImageType
  356.         #define SOMGD_GetImageType 1
  357.     #else
  358.         #define _GetImageType HIImagingObject_GetImageType
  359.     #endif /* _GetImageType */
  360. #endif /* SOMGD_GetImageType */
  361.  
  362. /*
  363.  * Direct call procedure
  364.  */
  365. typedef OSStatus   (SOMLINK *somTD_HIImagingObject_GetNewImageFromResource)(Environment *ev,
  366.         ResID objectInitializerResourceID,
  367.         HIImageRef* imageRefPtr);
  368. #define HIImagingObject_GetNewImageFromResource ((somTD_HIImagingObject_GetNewImageFromResource) HIImagingObjectClassData.GetNewImageFromResource)
  369. #ifndef SOMGD_GetNewImageFromResource
  370.     #if defined _GetNewImageFromResource || defined __GetNewImageFromResource
  371.         #undef _GetNewImageFromResource
  372.         #undef __GetNewImageFromResource
  373.         #define SOMGD_GetNewImageFromResource 1
  374.     #else
  375.         #define _GetNewImageFromResource HIImagingObject_GetNewImageFromResource
  376.     #endif /* _GetNewImageFromResource */
  377. #endif /* SOMGD_GetNewImageFromResource */
  378. #ifndef SOM_DONT_USE_INHERITED_MACROS
  379. #define HIImagingObject_somInit SOMObject_somInit
  380. #define HIImagingObject_somUninit SOMObject_somUninit
  381. #define HIImagingObject_somDuplicateReference SOMObject_somDuplicateReference
  382. #define HIImagingObject_somCompareReference SOMObject_somCompareReference
  383. #define HIImagingObject_somRelease SOMObject_somRelease
  384. #define HIImagingObject_somFree SOMObject_somFree
  385. #define HIImagingObject_somCanDelete SOMObject_somCanDelete
  386. #define HIImagingObject_somGetClass SOMObject_somGetClass
  387. #define HIImagingObject_somGetClassName SOMObject_somGetClassName
  388. #define HIImagingObject_somGetSize SOMObject_somGetSize
  389. #define HIImagingObject_somIsA SOMObject_somIsA
  390. #define HIImagingObject_somRespondsTo SOMObject_somRespondsTo
  391. #define HIImagingObject_somIsInstanceOf SOMObject_somIsInstanceOf
  392. #define HIImagingObject_somDispatch SOMObject_somDispatch
  393. #define HIImagingObject_somClassDispatch SOMObject_somClassDispatch
  394. #define HIImagingObject_somCastObj SOMObject_somCastObj
  395. #define HIImagingObject_somResetObj SOMObject_somResetObj
  396. #define HIImagingObject_somPrintSelf SOMObject_somPrintSelf
  397. #define HIImagingObject_somDumpSelf SOMObject_somDumpSelf
  398. #define HIImagingObject_somDumpSelfInt SOMObject_somDumpSelfInt
  399. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  400.  
  401. #endif       /* SOM_HIImagingObject_h */
  402.  
  403. #ifndef SOM_HICompositeImagingObject_h
  404. #define SOM_HICompositeImagingObject_h
  405.  
  406.  
  407. #include <som.h>
  408.  
  409. /*
  410.  * -- This emitter treats Method Tokens as Thunks by default.
  411.  * -- Use the sc modifier "nothunks" to change this default
  412.  */
  413. #undef somresolve_
  414. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  415.  
  416. /*
  417.  * Define the class name as an object type
  418.  */
  419. #ifndef HICompositeImagingObject
  420. #define HICompositeImagingObject SOMObject
  421. #endif
  422. #include <HIImagingObjects.h>
  423.  
  424. /*
  425.  * Start of user-defined types:
  426.  */
  427.  
  428. /*
  429.  * End of user-defined types.
  430.  */
  431.  
  432. #define HICompositeImagingObject_MajorVersion 0
  433. #define HICompositeImagingObject_MinorVersion 0
  434.  
  435. /*
  436.  * External name shortening if required
  437.  */
  438. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  439. #define HICompositeImagingObjectClassData d
  440. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  441. /*--------------Migration------------*/
  442.  
  443. #ifdef OLDIBMSOMAPISUPPORT
  444. #define HICompositeImagingObject_classObj somNewClassReference(HICompositeImagingObject)
  445. #define _HICompositeImagingObject HICompositeImagingObject_classObj
  446. #define HICompositeImagingObjectCClassData HICompositeImagingObjectClassData
  447. #define HICompositeImagingObjectNewClass(major,minor) somNewVersionedClassReference(HICompositeImagingObject,major,minor)
  448. #endif
  449.  
  450. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  451. #define HICompositeImagingObjectMetaClass SOMClass
  452.  
  453. #if PRAGMA_ALIGN_SUPPORTED
  454. #  pragma options align=power
  455. #endif
  456.  
  457. /*
  458.  * Declare the class data structure
  459.  */
  460. SOMEXTERN struct HICompositeImagingObjectClassDataStructure {
  461. #ifdef OLDIBMSOMAPISUPPORT
  462.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  463. #else
  464.     long zero;
  465. #endif
  466.     somStaticClassInfo *sci;
  467.     somDToken        instanceDataToken;
  468.     long reserved [3];
  469.     somMToken SetImageSize;
  470.     somMToken AddSubImages;
  471.     somMToken SetSubImage;
  472.     somMToken GetSubImage;
  473.     somMToken GetSubImageCount;
  474. } SOMDLINK HICompositeImagingObjectClassData;
  475.  
  476. #if PRAGMA_ALIGN_SUPPORTED
  477. #  pragma options align=reset
  478. #endif
  479.  
  480. #if !defined(HICompositeImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  481. #if PRAGMA_IMPORT_SUPPORTED
  482. #pragma import list HICompositeImagingObjectClassData
  483. #endif
  484. #endif
  485.  
  486.  
  487. /*
  488.  * New macro for HICompositeImagingObject
  489.  */
  490. #define HICompositeImagingObjectNew() somNewObject(HICompositeImagingObject)
  491.  
  492. /*
  493.  * New Method: SetImageSize
  494.  */
  495. typedef OSStatus   (SOMLINK *somTD_HICompositeImagingObject_SetImageSize)(HICompositeImagingObject *somSelf, Environment *ev,
  496.         HIImageRef imageRef,
  497.         UInt16 width,
  498.         UInt16 height);
  499. #define somMD_HICompositeImagingObject_SetImageSize "::HICompositeImagingObject::SetImageSize"
  500. #define HICompositeImagingObject_SetImageSize(somSelf,ev,imageRef,width,height) \
  501.     (SOM_Resolve(somSelf, HICompositeImagingObject, SetImageSize) \
  502.     (somSelf,ev,imageRef,width,height))
  503. #ifndef SOMGD_SetImageSize
  504.     #if defined _SetImageSize || defined __SetImageSize
  505.         #undef _SetImageSize
  506.         #undef __SetImageSize
  507.         #define SOMGD_SetImageSize 1
  508.     #else
  509.         #define _SetImageSize HICompositeImagingObject_SetImageSize
  510.     #endif /* _SetImageSize */
  511. #endif /* SOMGD_SetImageSize */
  512.  
  513. /*
  514.  * New Method: AddSubImages
  515.  */
  516. typedef OSStatus   (SOMLINK *somTD_HICompositeImagingObject_AddSubImages)(HICompositeImagingObject *somSelf, Environment *ev,
  517.         HIImageRef imageRef,
  518.         UInt32 index,
  519.         UInt32 count);
  520. #define somMD_HICompositeImagingObject_AddSubImages "::HICompositeImagingObject::AddSubImages"
  521. #define HICompositeImagingObject_AddSubImages(somSelf,ev,imageRef,index,count) \
  522.     (SOM_Resolve(somSelf, HICompositeImagingObject, AddSubImages) \
  523.     (somSelf,ev,imageRef,index,count))
  524. #ifndef SOMGD_AddSubImages
  525.     #if defined _AddSubImages || defined __AddSubImages
  526.         #undef _AddSubImages
  527.         #undef __AddSubImages
  528.         #define SOMGD_AddSubImages 1
  529.     #else
  530.         #define _AddSubImages HICompositeImagingObject_AddSubImages
  531.     #endif /* _AddSubImages */
  532. #endif /* SOMGD_AddSubImages */
  533.  
  534. /*
  535.  * New Method: SetSubImage
  536.  */
  537. typedef OSStatus   (SOMLINK *somTD_HICompositeImagingObject_SetSubImage)(HICompositeImagingObject *somSelf, Environment *ev,
  538.         HIImageRef imageRef,
  539.         UInt32 index,
  540.         ConstHIImageRef subHIImageRef,
  541.         Rect* subImageRect,
  542.         HIImageOptions options);
  543. #define somMD_HICompositeImagingObject_SetSubImage "::HICompositeImagingObject::SetSubImage"
  544. #define HICompositeImagingObject_SetSubImage(somSelf,ev,imageRef,index,subHIImageRef,subImageRect,options) \
  545.     (SOM_Resolve(somSelf, HICompositeImagingObject, SetSubImage) \
  546.     (somSelf,ev,imageRef,index,subHIImageRef,subImageRect,options))
  547. #ifndef SOMGD_SetSubImage
  548.     #if defined _SetSubImage || defined __SetSubImage
  549.         #undef _SetSubImage
  550.         #undef __SetSubImage
  551.         #define SOMGD_SetSubImage 1
  552.     #else
  553.         #define _SetSubImage HICompositeImagingObject_SetSubImage
  554.     #endif /* _SetSubImage */
  555. #endif /* SOMGD_SetSubImage */
  556.  
  557. /*
  558.  * New Method: GetSubImage
  559.  */
  560. typedef OSStatus   (SOMLINK *somTD_HICompositeImagingObject_GetSubImage)(HICompositeImagingObject *somSelf, Environment *ev,
  561.         ConstHIImageRef imageRef,
  562.         UInt32 index,
  563.         HIImageRef* subHIImageRefPtr,
  564.         Rect* subImageRect,
  565.         HIImageOptions* options);
  566. #define somMD_HICompositeImagingObject_GetSubImage "::HICompositeImagingObject::GetSubImage"
  567. #define HICompositeImagingObject_GetSubImage(somSelf,ev,imageRef,index,subHIImageRefPtr,subImageRect,options) \
  568.     (SOM_Resolve(somSelf, HICompositeImagingObject, GetSubImage) \
  569.     (somSelf,ev,imageRef,index,subHIImageRefPtr,subImageRect,options))
  570. #ifndef SOMGD_GetSubImage
  571.     #if defined _GetSubImage || defined __GetSubImage
  572.         #undef _GetSubImage
  573.         #undef __GetSubImage
  574.         #define SOMGD_GetSubImage 1
  575.     #else
  576.         #define _GetSubImage HICompositeImagingObject_GetSubImage
  577.     #endif /* _GetSubImage */
  578. #endif /* SOMGD_GetSubImage */
  579.  
  580. /*
  581.  * New Method: GetSubImageCount
  582.  */
  583. typedef UInt32   (SOMLINK *somTD_HICompositeImagingObject_GetSubImageCount)(HICompositeImagingObject *somSelf, Environment *ev,
  584.         ConstHIImageRef imageRef);
  585. #define somMD_HICompositeImagingObject_GetSubImageCount "::HICompositeImagingObject::GetSubImageCount"
  586. #define HICompositeImagingObject_GetSubImageCount(somSelf,ev,imageRef) \
  587.     (SOM_Resolve(somSelf, HICompositeImagingObject, GetSubImageCount) \
  588.     (somSelf,ev,imageRef))
  589. #ifndef SOMGD_GetSubImageCount
  590.     #if defined _GetSubImageCount || defined __GetSubImageCount
  591.         #undef _GetSubImageCount
  592.         #undef __GetSubImageCount
  593.         #define SOMGD_GetSubImageCount 1
  594.     #else
  595.         #define _GetSubImageCount HICompositeImagingObject_GetSubImageCount
  596.     #endif /* _GetSubImageCount */
  597. #endif /* SOMGD_GetSubImageCount */
  598. #ifndef SOM_DONT_USE_INHERITED_MACROS
  599. #define HICompositeImagingObject_NewImage HIImagingObject_NewImage
  600. #define HICompositeImagingObject_GetNewImage HIImagingObject_GetNewImage
  601. #define HICompositeImagingObject_CloneImage HIImagingObject_CloneImage
  602. #define HICompositeImagingObject_ReleaseImage HIImagingObject_ReleaseImage
  603. #define HICompositeImagingObject_GetImageOwnerCount HIImagingObject_GetImageOwnerCount
  604. #define HICompositeImagingObject_InitFromAERecord HIImagingObject_InitFromAERecord
  605. #define HICompositeImagingObject_WriteToAERecord HIImagingObject_WriteToAERecord
  606. #define HICompositeImagingObject_MeasureImage HIImagingObject_MeasureImage
  607. #define HICompositeImagingObject_DrawImage HIImagingObject_DrawImage
  608. #define HICompositeImagingObject_DisposeImage HIImagingObject_DisposeImage
  609. #define HICompositeImagingObject_GetHIImagingObject HIImagingObject_GetHIImagingObject
  610. #define HICompositeImagingObject_GetImageType HIImagingObject_GetImageType
  611. #define HICompositeImagingObject_GetNewImageFromResource HIImagingObject_GetNewImageFromResource
  612. #define HICompositeImagingObject_somInit SOMObject_somInit
  613. #define HICompositeImagingObject_somUninit SOMObject_somUninit
  614. #define HICompositeImagingObject_somDuplicateReference SOMObject_somDuplicateReference
  615. #define HICompositeImagingObject_somCompareReference SOMObject_somCompareReference
  616. #define HICompositeImagingObject_somRelease SOMObject_somRelease
  617. #define HICompositeImagingObject_somFree SOMObject_somFree
  618. #define HICompositeImagingObject_somCanDelete SOMObject_somCanDelete
  619. #define HICompositeImagingObject_somGetClass SOMObject_somGetClass
  620. #define HICompositeImagingObject_somGetClassName SOMObject_somGetClassName
  621. #define HICompositeImagingObject_somGetSize SOMObject_somGetSize
  622. #define HICompositeImagingObject_somIsA SOMObject_somIsA
  623. #define HICompositeImagingObject_somRespondsTo SOMObject_somRespondsTo
  624. #define HICompositeImagingObject_somIsInstanceOf SOMObject_somIsInstanceOf
  625. #define HICompositeImagingObject_somDispatch SOMObject_somDispatch
  626. #define HICompositeImagingObject_somClassDispatch SOMObject_somClassDispatch
  627. #define HICompositeImagingObject_somCastObj SOMObject_somCastObj
  628. #define HICompositeImagingObject_somResetObj SOMObject_somResetObj
  629. #define HICompositeImagingObject_somPrintSelf SOMObject_somPrintSelf
  630. #define HICompositeImagingObject_somDumpSelf SOMObject_somDumpSelf
  631. #define HICompositeImagingObject_somDumpSelfInt SOMObject_somDumpSelfInt
  632. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  633.  
  634. #endif       /* SOM_HICompositeImagingObject_h */
  635.  
  636. #ifndef SOM_HIIconImagingObject_h
  637. #define SOM_HIIconImagingObject_h
  638.  
  639.  
  640. /*
  641.  * Passthru lines: File: "C.h", "before"
  642.  */
  643. #include <Collections.h>
  644. #include <Quickdraw.h>
  645. #include <TextEdit.h>
  646. #include <TextObjects.h>
  647. #include <Types.h>
  648. #include <HIObjectTypes.h>
  649. #include <HIImagingObjectTypes.h>
  650.  
  651. #include <som.h>
  652.  
  653. /*
  654.  * -- This emitter treats Method Tokens as Thunks by default.
  655.  * -- Use the sc modifier "nothunks" to change this default
  656.  */
  657. #undef somresolve_
  658. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  659.  
  660. /*
  661.  * Define the class name as an object type
  662.  */
  663. #ifndef HIIconImagingObject
  664. #define HIIconImagingObject SOMObject
  665. #endif
  666. #include <HIImagingObjects.h>
  667.  
  668. /*
  669.  * Start of user-defined types:
  670.  */
  671.  
  672. /*
  673.  * End of user-defined types.
  674.  */
  675.  
  676. #define HIIconImagingObject_MajorVersion 0
  677. #define HIIconImagingObject_MinorVersion 0
  678.  
  679. /*
  680.  * External name shortening if required
  681.  */
  682. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  683. #define HIIconImagingObjectClassData d
  684. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  685. /*--------------Migration------------*/
  686.  
  687. #ifdef OLDIBMSOMAPISUPPORT
  688. #define HIIconImagingObject_classObj somNewClassReference(HIIconImagingObject)
  689. #define _HIIconImagingObject HIIconImagingObject_classObj
  690. #define HIIconImagingObjectCClassData HIIconImagingObjectClassData
  691. #define HIIconImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIIconImagingObject,major,minor)
  692. #endif
  693.  
  694. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  695. #define HIIconImagingObjectMetaClass SOMClass
  696.  
  697. #if PRAGMA_ALIGN_SUPPORTED
  698. #  pragma options align=power
  699. #endif
  700.  
  701. /*
  702.  * Declare the class data structure
  703.  */
  704. SOMEXTERN struct HIIconImagingObjectClassDataStructure {
  705. #ifdef OLDIBMSOMAPISUPPORT
  706.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  707. #else
  708.     long zero;
  709. #endif
  710.     somStaticClassInfo *sci;
  711.     somDToken        instanceDataToken;
  712.     long reserved [3];
  713.     somMToken SetIcon;
  714.     somMToken GetIcon;
  715. } SOMDLINK HIIconImagingObjectClassData;
  716.  
  717. #if PRAGMA_ALIGN_SUPPORTED
  718. #  pragma options align=reset
  719. #endif
  720.  
  721. #if !defined(HIIconImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  722. #if PRAGMA_IMPORT_SUPPORTED
  723. #pragma import list HIIconImagingObjectClassData
  724. #endif
  725. #endif
  726.  
  727.  
  728. /*
  729.  * New macro for HIIconImagingObject
  730.  */
  731. #define HIIconImagingObjectNew() somNewObject(HIIconImagingObject)
  732.  
  733. /*
  734.  * New Method: SetIcon
  735.  */
  736. typedef OSStatus   (SOMLINK *somTD_HIIconImagingObject_SetIcon)(HIIconImagingObject *somSelf, Environment *ev,
  737.         HIImageRef imageRef,
  738.         Handle iconSuite);
  739. #define somMD_HIIconImagingObject_SetIcon "::HIIconImagingObject::SetIcon"
  740. #define HIIconImagingObject_SetIcon(somSelf,ev,imageRef,iconSuite) \
  741.     (SOM_Resolve(somSelf, HIIconImagingObject, SetIcon) \
  742.     (somSelf,ev,imageRef,iconSuite))
  743. #ifndef SOMGD_SetIcon
  744.     #if defined _SetIcon || defined __SetIcon
  745.         #undef _SetIcon
  746.         #undef __SetIcon
  747.         #define SOMGD_SetIcon 1
  748.     #else
  749.         #define _SetIcon HIIconImagingObject_SetIcon
  750.     #endif /* _SetIcon */
  751. #endif /* SOMGD_SetIcon */
  752.  
  753. /*
  754.  * New Method: GetIcon
  755.  */
  756. typedef OSStatus   (SOMLINK *somTD_HIIconImagingObject_GetIcon)(HIIconImagingObject *somSelf, Environment *ev,
  757.         ConstHIImageRef imageRef,
  758.         Handle* iconSuitePtr);
  759. #define somMD_HIIconImagingObject_GetIcon "::HIIconImagingObject::GetIcon"
  760. #define HIIconImagingObject_GetIcon(somSelf,ev,imageRef,iconSuitePtr) \
  761.     (SOM_Resolve(somSelf, HIIconImagingObject, GetIcon) \
  762.     (somSelf,ev,imageRef,iconSuitePtr))
  763. #ifndef SOMGD_GetIcon
  764.     #if defined _GetIcon || defined __GetIcon
  765.         #undef _GetIcon
  766.         #undef __GetIcon
  767.         #define SOMGD_GetIcon 1
  768.     #else
  769.         #define _GetIcon HIIconImagingObject_GetIcon
  770.     #endif /* _GetIcon */
  771. #endif /* SOMGD_GetIcon */
  772. #ifndef SOM_DONT_USE_INHERITED_MACROS
  773. #define HIIconImagingObject_NewImage HIImagingObject_NewImage
  774. #define HIIconImagingObject_GetNewImage HIImagingObject_GetNewImage
  775. #define HIIconImagingObject_CloneImage HIImagingObject_CloneImage
  776. #define HIIconImagingObject_ReleaseImage HIImagingObject_ReleaseImage
  777. #define HIIconImagingObject_GetImageOwnerCount HIImagingObject_GetImageOwnerCount
  778. #define HIIconImagingObject_InitFromAERecord HIImagingObject_InitFromAERecord
  779. #define HIIconImagingObject_WriteToAERecord HIImagingObject_WriteToAERecord
  780. #define HIIconImagingObject_MeasureImage HIImagingObject_MeasureImage
  781. #define HIIconImagingObject_DrawImage HIImagingObject_DrawImage
  782. #define HIIconImagingObject_DisposeImage HIImagingObject_DisposeImage
  783. #define HIIconImagingObject_GetHIImagingObject HIImagingObject_GetHIImagingObject
  784. #define HIIconImagingObject_GetImageType HIImagingObject_GetImageType
  785. #define HIIconImagingObject_GetNewImageFromResource HIImagingObject_GetNewImageFromResource
  786. #define HIIconImagingObject_somInit SOMObject_somInit
  787. #define HIIconImagingObject_somUninit SOMObject_somUninit
  788. #define HIIconImagingObject_somDuplicateReference SOMObject_somDuplicateReference
  789. #define HIIconImagingObject_somCompareReference SOMObject_somCompareReference
  790. #define HIIconImagingObject_somRelease SOMObject_somRelease
  791. #define HIIconImagingObject_somFree SOMObject_somFree
  792. #define HIIconImagingObject_somCanDelete SOMObject_somCanDelete
  793. #define HIIconImagingObject_somGetClass SOMObject_somGetClass
  794. #define HIIconImagingObject_somGetClassName SOMObject_somGetClassName
  795. #define HIIconImagingObject_somGetSize SOMObject_somGetSize
  796. #define HIIconImagingObject_somIsA SOMObject_somIsA
  797. #define HIIconImagingObject_somRespondsTo SOMObject_somRespondsTo
  798. #define HIIconImagingObject_somIsInstanceOf SOMObject_somIsInstanceOf
  799. #define HIIconImagingObject_somDispatch SOMObject_somDispatch
  800. #define HIIconImagingObject_somClassDispatch SOMObject_somClassDispatch
  801. #define HIIconImagingObject_somCastObj SOMObject_somCastObj
  802. #define HIIconImagingObject_somResetObj SOMObject_somResetObj
  803. #define HIIconImagingObject_somPrintSelf SOMObject_somPrintSelf
  804. #define HIIconImagingObject_somDumpSelf SOMObject_somDumpSelf
  805. #define HIIconImagingObject_somDumpSelfInt SOMObject_somDumpSelfInt
  806. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  807.  
  808. #endif       /* SOM_HIIconImagingObject_h */
  809.  
  810. #ifndef SOM_HIPatternImagingObject_h
  811. #define SOM_HIPatternImagingObject_h
  812.  
  813.  
  814. /*
  815.  * Passthru lines: File: "C.h", "before"
  816.  */
  817. #include <Collections.h>
  818. #include <Quickdraw.h>
  819. #include <TextEdit.h>
  820. #include <TextObjects.h>
  821. #include <Types.h>
  822. #include <HIObjectTypes.h>
  823. #include <HIImagingObjectTypes.h>
  824.  
  825. #include <som.h>
  826.  
  827. /*
  828.  * -- This emitter treats Method Tokens as Thunks by default.
  829.  * -- Use the sc modifier "nothunks" to change this default
  830.  */
  831. #undef somresolve_
  832. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  833.  
  834. /*
  835.  * Define the class name as an object type
  836.  */
  837. #ifndef HIPatternImagingObject
  838. #define HIPatternImagingObject SOMObject
  839. #endif
  840. #include <HIImagingObjects.h>
  841.  
  842. /*
  843.  * Start of user-defined types:
  844.  */
  845.  
  846. /*
  847.  * End of user-defined types.
  848.  */
  849.  
  850. #define HIPatternImagingObject_MajorVersion 0
  851. #define HIPatternImagingObject_MinorVersion 0
  852.  
  853. /*
  854.  * External name shortening if required
  855.  */
  856. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  857. #define HIPatternImagingObjectClassData d
  858. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  859. /*--------------Migration------------*/
  860.  
  861. #ifdef OLDIBMSOMAPISUPPORT
  862. #define HIPatternImagingObject_classObj somNewClassReference(HIPatternImagingObject)
  863. #define _HIPatternImagingObject HIPatternImagingObject_classObj
  864. #define HIPatternImagingObjectCClassData HIPatternImagingObjectClassData
  865. #define HIPatternImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIPatternImagingObject,major,minor)
  866. #endif
  867.  
  868. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  869. #define HIPatternImagingObjectMetaClass SOMClass
  870.  
  871. #if PRAGMA_ALIGN_SUPPORTED
  872. #  pragma options align=power
  873. #endif
  874.  
  875. /*
  876.  * Declare the class data structure
  877.  */
  878. SOMEXTERN struct HIPatternImagingObjectClassDataStructure {
  879. #ifdef OLDIBMSOMAPISUPPORT
  880.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  881. #else
  882.     long zero;
  883. #endif
  884.     somStaticClassInfo *sci;
  885.     somDToken        instanceDataToken;
  886.     long reserved [3];
  887.     somMToken SetPattern;
  888.     somMToken GetPattern;
  889. } SOMDLINK HIPatternImagingObjectClassData;
  890.  
  891. #if PRAGMA_ALIGN_SUPPORTED
  892. #  pragma options align=reset
  893. #endif
  894.  
  895. #if !defined(HIPatternImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  896. #if PRAGMA_IMPORT_SUPPORTED
  897. #pragma import list HIPatternImagingObjectClassData
  898. #endif
  899. #endif
  900.  
  901.  
  902. /*
  903.  * New macro for HIPatternImagingObject
  904.  */
  905. #define HIPatternImagingObjectNew() somNewObject(HIPatternImagingObject)
  906.  
  907. /*
  908.  * New Method: SetPattern
  909.  */
  910. typedef OSStatus   (SOMLINK *somTD_HIPatternImagingObject_SetPattern)(HIPatternImagingObject *somSelf, Environment *ev,
  911.         HIImageRef imageRef,
  912.         PixPatHandle pattern);
  913. #define somMD_HIPatternImagingObject_SetPattern "::HIPatternImagingObject::SetPattern"
  914. #define HIPatternImagingObject_SetPattern(somSelf,ev,imageRef,pattern) \
  915.     (SOM_Resolve(somSelf, HIPatternImagingObject, SetPattern) \
  916.     (somSelf,ev,imageRef,pattern))
  917. #ifndef SOMGD_SetPattern
  918.     #if defined _SetPattern || defined __SetPattern
  919.         #undef _SetPattern
  920.         #undef __SetPattern
  921.         #define SOMGD_SetPattern 1
  922.     #else
  923.         #define _SetPattern HIPatternImagingObject_SetPattern
  924.     #endif /* _SetPattern */
  925. #endif /* SOMGD_SetPattern */
  926.  
  927. /*
  928.  * New Method: GetPattern
  929.  */
  930. typedef OSStatus   (SOMLINK *somTD_HIPatternImagingObject_GetPattern)(HIPatternImagingObject *somSelf, Environment *ev,
  931.         ConstHIImageRef imageRef,
  932.         PixPatHandle* pattern);
  933. #define somMD_HIPatternImagingObject_GetPattern "::HIPatternImagingObject::GetPattern"
  934. #define HIPatternImagingObject_GetPattern(somSelf,ev,imageRef,pattern) \
  935.     (SOM_Resolve(somSelf, HIPatternImagingObject, GetPattern) \
  936.     (somSelf,ev,imageRef,pattern))
  937. #ifndef SOMGD_GetPattern
  938.     #if defined _GetPattern || defined __GetPattern
  939.         #undef _GetPattern
  940.         #undef __GetPattern
  941.         #define SOMGD_GetPattern 1
  942.     #else
  943.         #define _GetPattern HIPatternImagingObject_GetPattern
  944.     #endif /* _GetPattern */
  945. #endif /* SOMGD_GetPattern */
  946. #ifndef SOM_DONT_USE_INHERITED_MACROS
  947. #define HIPatternImagingObject_NewImage HIImagingObject_NewImage
  948. #define HIPatternImagingObject_GetNewImage HIImagingObject_GetNewImage
  949. #define HIPatternImagingObject_CloneImage HIImagingObject_CloneImage
  950. #define HIPatternImagingObject_ReleaseImage HIImagingObject_ReleaseImage
  951. #define HIPatternImagingObject_GetImageOwnerCount HIImagingObject_GetImageOwnerCount
  952. #define HIPatternImagingObject_InitFromAERecord HIImagingObject_InitFromAERecord
  953. #define HIPatternImagingObject_WriteToAERecord HIImagingObject_WriteToAERecord
  954. #define HIPatternImagingObject_MeasureImage HIImagingObject_MeasureImage
  955. #define HIPatternImagingObject_DrawImage HIImagingObject_DrawImage
  956. #define HIPatternImagingObject_DisposeImage HIImagingObject_DisposeImage
  957. #define HIPatternImagingObject_GetHIImagingObject HIImagingObject_GetHIImagingObject
  958. #define HIPatternImagingObject_GetImageType HIImagingObject_GetImageType
  959. #define HIPatternImagingObject_GetNewImageFromResource HIImagingObject_GetNewImageFromResource
  960. #define HIPatternImagingObject_somInit SOMObject_somInit
  961. #define HIPatternImagingObject_somUninit SOMObject_somUninit
  962. #define HIPatternImagingObject_somDuplicateReference SOMObject_somDuplicateReference
  963. #define HIPatternImagingObject_somCompareReference SOMObject_somCompareReference
  964. #define HIPatternImagingObject_somRelease SOMObject_somRelease
  965. #define HIPatternImagingObject_somFree SOMObject_somFree
  966. #define HIPatternImagingObject_somCanDelete SOMObject_somCanDelete
  967. #define HIPatternImagingObject_somGetClass SOMObject_somGetClass
  968. #define HIPatternImagingObject_somGetClassName SOMObject_somGetClassName
  969. #define HIPatternImagingObject_somGetSize SOMObject_somGetSize
  970. #define HIPatternImagingObject_somIsA SOMObject_somIsA
  971. #define HIPatternImagingObject_somRespondsTo SOMObject_somRespondsTo
  972. #define HIPatternImagingObject_somIsInstanceOf SOMObject_somIsInstanceOf
  973. #define HIPatternImagingObject_somDispatch SOMObject_somDispatch
  974. #define HIPatternImagingObject_somClassDispatch SOMObject_somClassDispatch
  975. #define HIPatternImagingObject_somCastObj SOMObject_somCastObj
  976. #define HIPatternImagingObject_somResetObj SOMObject_somResetObj
  977. #define HIPatternImagingObject_somPrintSelf SOMObject_somPrintSelf
  978. #define HIPatternImagingObject_somDumpSelf SOMObject_somDumpSelf
  979. #define HIPatternImagingObject_somDumpSelfInt SOMObject_somDumpSelfInt
  980. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  981.  
  982. #endif       /* SOM_HIPatternImagingObject_h */
  983.  
  984. #ifndef SOM_HIPictureImagingObject_h
  985. #define SOM_HIPictureImagingObject_h
  986.  
  987.  
  988. /*
  989.  * Passthru lines: File: "C.h", "before"
  990.  */
  991. #include <Collections.h>
  992. #include <Quickdraw.h>
  993. #include <TextEdit.h>
  994. #include <TextObjects.h>
  995. #include <Types.h>
  996. #include <HIObjectTypes.h>
  997. #include <HIImagingObjectTypes.h>
  998.  
  999. #include <som.h>
  1000.  
  1001. /*
  1002.  * -- This emitter treats Method Tokens as Thunks by default.
  1003.  * -- Use the sc modifier "nothunks" to change this default
  1004.  */
  1005. #undef somresolve_
  1006. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1007.  
  1008. /*
  1009.  * Define the class name as an object type
  1010.  */
  1011. #ifndef HIPictureImagingObject
  1012. #define HIPictureImagingObject SOMObject
  1013. #endif
  1014. #include <HIImagingObjects.h>
  1015.  
  1016. /*
  1017.  * Start of user-defined types:
  1018.  */
  1019.  
  1020. /*
  1021.  * End of user-defined types.
  1022.  */
  1023.  
  1024. #define HIPictureImagingObject_MajorVersion 0
  1025. #define HIPictureImagingObject_MinorVersion 0
  1026.  
  1027. /*
  1028.  * External name shortening if required
  1029.  */
  1030. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  1031. #define HIPictureImagingObjectClassData d
  1032. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  1033. /*--------------Migration------------*/
  1034.  
  1035. #ifdef OLDIBMSOMAPISUPPORT
  1036. #define HIPictureImagingObject_classObj somNewClassReference(HIPictureImagingObject)
  1037. #define _HIPictureImagingObject HIPictureImagingObject_classObj
  1038. #define HIPictureImagingObjectCClassData HIPictureImagingObjectClassData
  1039. #define HIPictureImagingObjectNewClass(major,minor) somNewVersionedClassReference(HIPictureImagingObject,major,minor)
  1040. #endif
  1041.  
  1042. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1043. #define HIPictureImagingObjectMetaClass SOMClass
  1044.  
  1045. #if PRAGMA_ALIGN_SUPPORTED
  1046. #  pragma options align=power
  1047. #endif
  1048.  
  1049. /*
  1050.  * Declare the class data structure
  1051.  */
  1052. SOMEXTERN struct HIPictureImagingObjectClassDataStructure {
  1053. #ifdef OLDIBMSOMAPISUPPORT
  1054.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  1055. #else
  1056.     long zero;
  1057. #endif
  1058.     somStaticClassInfo *sci;
  1059.     somDToken        instanceDataToken;
  1060.     long reserved [3];
  1061.     somMToken SetPicture;
  1062.     somMToken GetPicture;
  1063. } SOMDLINK HIPictureImagingObjectClassData;
  1064.  
  1065. #if PRAGMA_ALIGN_SUPPORTED
  1066. #  pragma options align=reset
  1067. #endif
  1068.  
  1069. #if !defined(HIPictureImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  1070. #if PRAGMA_IMPORT_SUPPORTED
  1071. #pragma import list HIPictureImagingObjectClassData
  1072. #endif
  1073. #endif
  1074.  
  1075.  
  1076. /*
  1077.  * New macro for HIPictureImagingObject
  1078.  */
  1079. #define HIPictureImagingObjectNew() somNewObject(HIPictureImagingObject)
  1080.  
  1081. /*
  1082.  * New Method: SetPicture
  1083.  */
  1084. typedef OSStatus   (SOMLINK *somTD_HIPictureImagingObject_SetPicture)(HIPictureImagingObject *somSelf, Environment *ev,
  1085.         HIImageRef imageRef,
  1086.         PicHandle picture);
  1087. #define somMD_HIPictureImagingObject_SetPicture "::HIPictureImagingObject::SetPicture"
  1088. #define HIPictureImagingObject_SetPicture(somSelf,ev,imageRef,picture) \
  1089.     (SOM_Resolve(somSelf, HIPictureImagingObject, SetPicture) \
  1090.     (somSelf,ev,imageRef,picture))
  1091. #ifndef SOMGD_SetPicture
  1092.     #if defined _SetPicture || defined __SetPicture
  1093.         #undef _SetPicture
  1094.         #undef __SetPicture
  1095.         #define SOMGD_SetPicture 1
  1096.     #else
  1097.         #define _SetPicture HIPictureImagingObject_SetPicture
  1098.     #endif /* _SetPicture */
  1099. #endif /* SOMGD_SetPicture */
  1100.  
  1101. /*
  1102.  * New Method: GetPicture
  1103.  */
  1104. typedef OSStatus   (SOMLINK *somTD_HIPictureImagingObject_GetPicture)(HIPictureImagingObject *somSelf, Environment *ev,
  1105.         ConstHIImageRef imageRef,
  1106.         PicHandle* picturePtr);
  1107. #define somMD_HIPictureImagingObject_GetPicture "::HIPictureImagingObject::GetPicture"
  1108. #define HIPictureImagingObject_GetPicture(somSelf,ev,imageRef,picturePtr) \
  1109.     (SOM_Resolve(somSelf, HIPictureImagingObject, GetPicture) \
  1110.     (somSelf,ev,imageRef,picturePtr))
  1111. #ifndef SOMGD_GetPicture
  1112.     #if defined _GetPicture || defined __GetPicture
  1113.         #undef _GetPicture
  1114.         #undef __GetPicture
  1115.         #define SOMGD_GetPicture 1
  1116.     #else
  1117.         #define _GetPicture HIPictureImagingObject_GetPicture
  1118.     #endif /* _GetPicture */
  1119. #endif /* SOMGD_GetPicture */
  1120. #ifndef SOM_DONT_USE_INHERITED_MACROS
  1121. #define HIPictureImagingObject_NewImage HIImagingObject_NewImage
  1122. #define HIPictureImagingObject_GetNewImage HIImagingObject_GetNewImage
  1123. #define HIPictureImagingObject_CloneImage HIImagingObject_CloneImage
  1124. #define HIPictureImagingObject_ReleaseImage HIImagingObject_ReleaseImage
  1125. #define HIPictureImagingObject_GetImageOwnerCount HIImagingObject_GetImageOwnerCount
  1126. #define HIPictureImagingObject_InitFromAERecord HIImagingObject_InitFromAERecord
  1127. #define HIPictureImagingObject_WriteToAERecord HIImagingObject_WriteToAERecord
  1128. #define HIPictureImagingObject_MeasureImage HIImagingObject_MeasureImage
  1129. #define HIPictureImagingObject_DrawImage HIImagingObject_DrawImage
  1130. #define HIPictureImagingObject_DisposeImage HIImagingObject_DisposeImage
  1131. #define HIPictureImagingObject_GetHIImagingObject HIImagingObject_GetHIImagingObject
  1132. #define HIPictureImagingObject_GetImageType HIImagingObject_GetImageType
  1133. #define HIPictureImagingObject_GetNewImageFromResource HIImagingObject_GetNewImageFromResource
  1134. #define HIPictureImagingObject_somInit SOMObject_somInit
  1135. #define HIPictureImagingObject_somUninit SOMObject_somUninit
  1136. #define HIPictureImagingObject_somDuplicateReference SOMObject_somDuplicateReference
  1137. #define HIPictureImagingObject_somCompareReference SOMObject_somCompareReference
  1138. #define HIPictureImagingObject_somRelease SOMObject_somRelease
  1139. #define HIPictureImagingObject_somFree SOMObject_somFree
  1140. #define HIPictureImagingObject_somCanDelete SOMObject_somCanDelete
  1141. #define HIPictureImagingObject_somGetClass SOMObject_somGetClass
  1142. #define HIPictureImagingObject_somGetClassName SOMObject_somGetClassName
  1143. #define HIPictureImagingObject_somGetSize SOMObject_somGetSize
  1144. #define HIPictureImagingObject_somIsA SOMObject_somIsA
  1145. #define HIPictureImagingObject_somRespondsTo SOMObject_somRespondsTo
  1146. #define HIPictureImagingObject_somIsInstanceOf SOMObject_somIsInstanceOf
  1147. #define HIPictureImagingObject_somDispatch SOMObject_somDispatch
  1148. #define HIPictureImagingObject_somClassDispatch SOMObject_somClassDispatch
  1149. #define HIPictureImagingObject_somCastObj SOMObject_somCastObj
  1150. #define HIPictureImagingObject_somResetObj SOMObject_somResetObj
  1151. #define HIPictureImagingObject_somPrintSelf SOMObject_somPrintSelf
  1152. #define HIPictureImagingObject_somDumpSelf SOMObject_somDumpSelf
  1153. #define HIPictureImagingObject_somDumpSelfInt SOMObject_somDumpSelfInt
  1154. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  1155.  
  1156. #endif       /* SOM_HIPictureImagingObject_h */
  1157.  
  1158. #ifndef SOM_HITextImagingObject_h
  1159. #define SOM_HITextImagingObject_h
  1160.  
  1161.  
  1162. /*
  1163.  * Passthru lines: File: "C.h", "before"
  1164.  */
  1165. #include <Collections.h>
  1166. #include <Fonts.h>
  1167. #include <Quickdraw.h>
  1168. #include <TextEdit.h>
  1169. #include <TextObjects.h>
  1170. #include <Types.h>
  1171. #include <HIObjectTypes.h>
  1172. #include <HIImagingObjectTypes.h>
  1173.  
  1174. #include <som.h>
  1175.  
  1176. /*
  1177.  * -- This emitter treats Method Tokens as Thunks by default.
  1178.  * -- Use the sc modifier "nothunks" to change this default
  1179.  */
  1180. #undef somresolve_
  1181. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  1182.  
  1183. /*
  1184.  * Define the class name as an object type
  1185.  */
  1186. #ifndef HITextImagingObject
  1187. #define HITextImagingObject SOMObject
  1188. #endif
  1189. #include <HIImagingObjects.h>
  1190.  
  1191. /*
  1192.  * Start of user-defined types:
  1193.  */
  1194.  
  1195. /*
  1196.  * End of user-defined types.
  1197.  */
  1198.  
  1199. #define HITextImagingObject_MajorVersion 0
  1200. #define HITextImagingObject_MinorVersion 0
  1201.  
  1202. /*
  1203.  * External name shortening if required
  1204.  */
  1205. #ifdef SOM_USE_SHORT_EXTERNAL_NAMES
  1206. #define HITextImagingObjectClassData d
  1207. #endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
  1208. /*--------------Migration------------*/
  1209.  
  1210. #ifdef OLDIBMSOMAPISUPPORT
  1211. #define HITextImagingObject_classObj somNewClassReference(HITextImagingObject)
  1212. #define _HITextImagingObject HITextImagingObject_classObj
  1213. #define HITextImagingObjectCClassData HITextImagingObjectClassData
  1214. #define HITextImagingObjectNewClass(major,minor) somNewVersionedClassReference(HITextImagingObject,major,minor)
  1215. #endif
  1216.  
  1217. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  1218. #define HITextImagingObjectMetaClass SOMClass
  1219.  
  1220. #if PRAGMA_ALIGN_SUPPORTED
  1221. #  pragma options align=power
  1222. #endif
  1223.  
  1224. /*
  1225.  * Declare the class data structure
  1226.  */
  1227. SOMEXTERN struct HITextImagingObjectClassDataStructure {
  1228. #ifdef OLDIBMSOMAPISUPPORT
  1229.     SOMAny            *classObject;    /* always zero, use somNewClassReference instead */
  1230. #else
  1231.     long zero;
  1232. #endif
  1233.     somStaticClassInfo *sci;
  1234.     somDToken        instanceDataToken;
  1235.     long reserved [3];
  1236.     somMToken SetText;
  1237.     somMToken GetText;
  1238.     somMToken SetStrike;
  1239.     somMToken GetStrike;
  1240.     somMToken TextImageMgr__reserved0;
  1241.     somMToken TextImageMgr__reserved1;
  1242. } SOMDLINK HITextImagingObjectClassData;
  1243.  
  1244. #if PRAGMA_ALIGN_SUPPORTED
  1245. #  pragma options align=reset
  1246. #endif
  1247.  
  1248. #if !defined(HITextImagingObject_Class_Source) && !defined(SOM_Module_hiimagingobjects_Source)
  1249. #if PRAGMA_IMPORT_SUPPORTED
  1250. #pragma import list HITextImagingObjectClassData
  1251. #endif
  1252. #endif
  1253.  
  1254.  
  1255. /*
  1256.  * New macro for HITextImagingObject
  1257.  */
  1258. #define HITextImagingObjectNew() somNewObject(HITextImagingObject)
  1259.  
  1260. /*
  1261.  * New Method: SetText
  1262.  */
  1263. typedef OSStatus   (SOMLINK *somTD_HITextImagingObject_SetText)(HITextImagingObject *somSelf, Environment *ev,
  1264.         HIImageRef imageRef,
  1265.         TextObject textObject);
  1266. #define somMD_HITextImagingObject_SetText "::HITextImagingObject::SetText"
  1267. #define HITextImagingObject_SetText(somSelf,ev,imageRef,textObject) \
  1268.     (SOM_Resolve(somSelf, HITextImagingObject, SetText) \
  1269.     (somSelf,ev,imageRef,textObject))
  1270. #ifndef SOMGD_SetText
  1271.     #if defined _SetText || defined __SetText
  1272.         #undef _SetText
  1273.         #undef __SetText
  1274.         #define SOMGD_SetText 1
  1275.     #else
  1276.         #define _SetText HITextImagingObject_SetText
  1277.     #endif /* _SetText */
  1278. #endif /* SOMGD_SetText */
  1279.  
  1280. /*
  1281.  * New Method: GetText
  1282.  */
  1283. typedef OSStatus   (SOMLINK *somTD_HITextImagingObject_GetText)(HITextImagingObject *somSelf, Environment *ev,
  1284.         ConstHIImageRef imageRef,
  1285.         TextObject* textObjectPtr);
  1286. #define somMD_HITextImagingObject_GetText "::HITextImagingObject::GetText"
  1287. #define HITextImagingObject_GetText(somSelf,ev,imageRef,textObjectPtr) \
  1288.     (SOM_Resolve(somSelf, HITextImagingObject, GetText) \
  1289.     (somSelf,ev,imageRef,textObjectPtr))
  1290. #ifndef SOMGD_GetText
  1291.     #if defined _GetText || defined __GetText
  1292.         #undef _GetText
  1293.         #undef __GetText
  1294.         #define SOMGD_GetText 1
  1295.     #else
  1296.         #define _GetText HITextImagingObject_GetText
  1297.     #endif /* _GetText */
  1298. #endif /* SOMGD_GetText */
  1299.  
  1300. /*
  1301.  * New Method: SetStrike
  1302.  */
  1303. typedef OSStatus   (SOMLINK *somTD_HITextImagingObject_SetStrike)(HITextImagingObject *somSelf, Environment *ev,
  1304.         HIImageRef imageRef,
  1305.         TextStrikeRef strike);
  1306. #define somMD_HITextImagingObject_SetStrike "::HITextImagingObject::SetStrike"
  1307. #define HITextImagingObject_SetStrike(somSelf,ev,imageRef,strike) \
  1308.     (SOM_Resolve(somSelf, HITextImagingObject, SetStrike) \
  1309.     (somSelf,ev,imageRef,strike))
  1310. #ifndef SOMGD_SetStrike
  1311.     #if defined _SetStrike || defined __SetStrike
  1312.         #undef _SetStrike
  1313.         #undef __SetStrike
  1314.         #define SOMGD_SetStrike 1
  1315.     #else
  1316.         #define _SetStrike HITextImagingObject_SetStrike
  1317.     #endif /* _SetStrike */
  1318. #endif /* SOMGD_SetStrike */
  1319.  
  1320. /*
  1321.  * New Method: GetStrike
  1322.  */
  1323. typedef OSStatus   (SOMLINK *somTD_HITextImagingObject_GetStrike)(HITextImagingObject *somSelf, Environment *ev,
  1324.         ConstHIImageRef imageRef,
  1325.         TextStrikeRef* strike);
  1326. #define somMD_HITextImagingObject_GetStrike "::HITextImagingObject::GetStrike"
  1327. #define HITextImagingObject_GetStrike(somSelf,ev,imageRef,strike) \
  1328.     (SOM_Resolve(somSelf, HITextImagingObject, GetStrike) \
  1329.     (somSelf,ev,imageRef,strike))
  1330. #ifndef SOMGD_GetStrike
  1331.     #if defined _GetStrike || defined __GetStrike
  1332.         #undef _GetStrike
  1333.         #undef __GetStrike
  1334.         #define SOMGD_GetStrike 1
  1335.     #else
  1336.         #define _GetStrike HITextImagingObject_GetStrike
  1337.     #endif /* _GetStrike */
  1338. #endif /* SOMGD_GetStrike */
  1339. #ifndef SOM_DONT_USE_INHERITED_MACROS
  1340. #define HITextImagingObject_NewImage HIImagingObject_NewImage
  1341. #define HITextImagingObject_GetNewImage HIImagingObject_GetNewImage
  1342. #define HITextImagingObject_CloneImage HIImagingObject_CloneImage
  1343. #define HITextImagingObject_ReleaseImage HIImagingObject_ReleaseImage
  1344. #define HITextImagingObject_GetImageOwnerCount HIImagingObject_GetImageOwnerCount
  1345. #define HITextImagingObject_InitFromAERecord HIImagingObject_InitFromAERecord
  1346. #define HITextImagingObject_WriteToAERecord HIImagingObject_WriteToAERecord
  1347. #define HITextImagingObject_MeasureImage HIImagingObject_MeasureImage
  1348. #define HITextImagingObject_DrawImage HIImagingObject_DrawImage
  1349. #define HITextImagingObject_DisposeImage HIImagingObject_DisposeImage
  1350. #define HITextImagingObject_GetHIImagingObject HIImagingObject_GetHIImagingObject
  1351. #define HITextImagingObject_GetImageType HIImagingObject_GetImageType
  1352. #define HITextImagingObject_GetNewImageFromResource HIImagingObject_GetNewImageFromResource
  1353. #define HITextImagingObject_somInit SOMObject_somInit
  1354. #define HITextImagingObject_somUninit SOMObject_somUninit
  1355. #define HITextImagingObject_somDuplicateReference SOMObject_somDuplicateReference
  1356. #define HITextImagingObject_somCompareReference SOMObject_somCompareReference
  1357. #define HITextImagingObject_somRelease SOMObject_somRelease
  1358. #define HITextImagingObject_somFree SOMObject_somFree
  1359. #define HITextImagingObject_somCanDelete SOMObject_somCanDelete
  1360. #define HITextImagingObject_somGetClass SOMObject_somGetClass
  1361. #define HITextImagingObject_somGetClassName SOMObject_somGetClassName
  1362. #define HITextImagingObject_somGetSize SOMObject_somGetSize
  1363. #define HITextImagingObject_somIsA SOMObject_somIsA
  1364. #define HITextImagingObject_somRespondsTo SOMObject_somRespondsTo
  1365. #define HITextImagingObject_somIsInstanceOf SOMObject_somIsInstanceOf
  1366. #define HITextImagingObject_somDispatch SOMObject_somDispatch
  1367. #define HITextImagingObject_somClassDispatch SOMObject_somClassDispatch
  1368. #define HITextImagingObject_somCastObj SOMObject_somCastObj
  1369. #define HITextImagingObject_somResetObj SOMObject_somResetObj
  1370. #define HITextImagingObject_somPrintSelf SOMObject_somPrintSelf
  1371. #define HITextImagingObject_somDumpSelf SOMObject_somDumpSelf
  1372. #define HITextImagingObject_somDumpSelfInt SOMObject_somDumpSelfInt
  1373. #endif /* SOM_DONT_USE_INHERITED_MACROS */
  1374.  
  1375. #endif       /* SOM_HITextImagingObject_h */
  1376.